﻿<Window x:Class="biolit_config.OntologyDownloadManagement"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Ontology Download Locations"
    Name="DownloadManagementDialog"
    Height="400" Width="520" WindowStartupLocation="CenterScreen">
    <Grid Name="DownloadLocations">
        <Grid.RowDefinitions>
            <RowDefinition Height="162*" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <ListView Name="OntologiesSourceList" DockPanel.Dock="Top" MinHeight="220" Grid.Row="0" BorderThickness="1,1,1,1" BorderBrush="Black">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="Name" Width="100">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <Border BorderThickness="1,0,1,0">
                                <TextBlock Text="{Binding Name}" TextWrapping="Wrap" ToolTipService.ToolTip="{Binding Name}" />
                                    </Border>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                    <!--<GridViewColumn Header="Name" Width="100" 
                      DisplayMemberBinding="{Binding Name}" />-->
                    <GridViewColumn Header="URL" Width="319">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <Border BorderThickness="1,0,1,0">
                                <TextBlock Text="{Binding URL}" TextWrapping="Wrap" ToolTipService.ToolTip="{Binding URL}" />
                                    </Border>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                    <!--<GridViewColumn Header="URL" Width="320" 
                      DisplayMemberBinding="{Binding URL}" />-->
                    <GridViewColumn Header="Actions" Width="72" >
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <Border BorderThickness="1,0,1,0">
                                <TextBlock Text="Remove" FontSize="12" Foreground="Red" TextDecorations="Underline" HorizontalAlignment="Center" Margin="10 0 0 0" Cursor="Hand" MouseLeftButtonDown="btnDeleteurl_MouseLeftButtonDown"  Name="btnDeleteurl" />  
                                    </Border>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                </GridView>
            </ListView.View>
        </ListView>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Row="1">
            <Label Name="lblName" Grid.Row="2">Name</Label>
            <TextBox Name="txtName" Grid.Row="2" Height="25" Width="200"></TextBox>
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Row="2">
            <Label Name="lblURL" Grid.Row="2" Content="URL   "></Label>
            <TextBox Name="txtURL" Grid.Row="2" Height="25" Width="200"></TextBox>
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Row="3" Margin="2,2,2,2">
            <!--<Button Margin="2,2,2,2" IsEnabled="False" Click="RemoveDownloadLocationClick" Name="RemoveButton">Remove</Button>-->
            <Button Margin="100,2,2,2" Click="AddDownloadLocationClick" Content="Add" Width="50" ></Button>
        </StackPanel>
        <Border Grid.Row="4" BorderBrush="#FFc1c1c1" BorderThickness="1" Height="1" />
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="5">
            <Button Click="CloseDownloadManagement" IsDefault="True" Margin="2,2,10,2" Width="50">OK</Button>
            <Button Click="CancelDownloadManagement" Margin="2,2,2,2" Width="50">Cancel</Button>
        </StackPanel>
    </Grid>
</Window>
